Properly handle model changes in GtkTreeSelection: (#322569, Milosz
authorMatthias Clasen <mclasen@redhat.com>
Tue, 29 Nov 2005 19:34:15 +0000 (19:34 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 29 Nov 2005 19:34:15 +0000 (19:34 +0000)
commit924765a2fe8015290a4bd26ad93d5ad33091fd24
tree288561c2ee6d2e681c9f00386f10a725bf01739c
parent62ed8cb11504bb077f93b5e5d97ee561754642f0
Properly handle model changes in GtkTreeSelection: (#322569, Milosz

2005-11-29  Matthias Clasen  <mclasen@redhat.com>

Properly handle model changes in GtkTreeSelection: (#322569,
Milosz Derezynski)

* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Get a reference to the model, and stop the iteration if the model
of the treeview is changed on the way.

* gtk/gtktreeprivate.h:
* gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
private function to emit the GtkTreeSelection::changed signal.

* gtk/gtktreeview.c (gtk_tree_view_set_model): Call
_gtk_tree_selection_emit_changed() when the model changes.
ChangeLog
ChangeLog.pre-2-10
gtk/gtktreeprivate.h
gtk/gtktreeselection.c
gtk/gtktreeview.c